#include <stdio.h>
#include <stdlib.h>
#include <math.h>

//https://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8?tpId=37&&tqId=21320&rp=1&ru=/ta/huawei&qru=/ta/huawei/question-ranking

int main() {
    int n = 0;
    int input = 0;
    int PosCount = 0;
    int NegCount = 0;
    double Sum = 0;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        scanf("%d", &input);
        if (input < 0) {
            NegCount++;
        } else if (input > 0) {
            Sum += input;
            PosCount++;
        }
    }
    printf("%d ", NegCount);
    printf("%.1f", (PosCount == 0) ? 0 : (Sum / PosCount));
    return 0;
}